﻿@model IEnumerable<QuanLyCCN.District>

@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Home.cshtml";
}

<h2>List</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            maNhanDang
        </th>
        <th>
            ten
        </th>
        <th>
            hienThi
        </th>
        <th>
            ngayTao
        </th>
        <th>
            taoBoi
        </th>
        <th>
            ngaySuaDoi
        </th>
        <th>
            suaBoi
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
            @Html.ActionLink("Details", "Details", new { id=item.id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.id })
        </td>
        <td>
            @item.maNhanDang
        </td>
        <td>
            @item.ten
        </td>
        <td>
            @item.hienThi
        </td>
        <td>
            @String.Format("{0:g}", item.ngayTao)
        </td>
        <td>
            @item.taoBoi
        </td>
        <td>
            @String.Format("{0:g}", item.ngaySuaDoi)
        </td>
        <td>
            @item.suaBoi
        </td>
    </tr>
}

</table>

